package com.hou.shop.ware.config;

import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author shkstart
 * @create 2022-03-03-14:27
 */
@EnableTransactionManagement
@Configuration
@MapperScan("com.hou.shop.ware.dao")
public class WareMybatisConfig {

    @Bean
    public PaginationInnerInterceptor paginationInnerInterceptor() {
        PaginationInnerInterceptor paginationInnerInterceptor = new PaginationInnerInterceptor();

        return paginationInnerInterceptor;
    }

}
